Video processing for vehicle ride

ABSTRACT

A method includes capturing video data from a camera over a period of time while capturing motion data from a detector over that same period of time. Then, the method additionally includes selecting a subset of the video data captured during the period of time, based on a corresponding subset of the motion data. The method then proscribes storing this selected subset of video data in memory.

TECHNICAL FIELD

The present subject matter relates to techniques and equipment to utilize a vehicle and resulting drive metadata from the vehicle in order to curate a video.

BACKGROUND

The modern automobile in recent years has seen a massive expansion in the number of internal electronic systems. Expanding far beyond the emissions and diagnostic systems tracked by the on-board diagnostics (OBD) systems standardized in the OBD-II interface, these cutting-edge vehicles are filled with electronic control units (ECUs) that monitor and track nearly every movement or action within the vehicle. Angle of the steering wheel, accelerator and brake pedal depression, current engine horsepower, and multidimensional gravity force equivalents (g-forces) are all recorded. Some automobiles have even added additional sensors in order to provide performance improvement features such as active suspension, which previews the road and adjusts suspension for each wheel individually, all within milliseconds.

These automobile systems are now at least in-part electrical. In order for all of these systems to work in tandem to provide optimal performance, the ECUs that manage the systems communicate over a software bus. A software bus could be for example a Controller Area Network (CAN) bus. Computer busses in general operate by allowing systems connected to the bus, such as the ECUs, to send messages through the bus to other ECUs. Alternatively, an ECU can broadcast data over the bus.

This presents an interesting opportunity: a vast quantity of an automobile's operational data can be gathered by a single component, synthesized, and then utilized. The application of this data has generally been limited to improving operation of the automobile, but there is potential to use this data for non-performance purposes.

Changing focus, data collection in the modern age has skyrocketed, and in particular the collection of video data has expanded immensely. Hundreds if not thousands of hours of video are uploaded to major video-sharing platforms every minute—far more than any person, or any determined group of people, could ever hope to watch. Additionally, the space requirements for storing all of these video files are significant. Video storage platforms are pushing to improve video curation, in order to cut down on their digital storage needs. Consumers and creators of videos are also looking for curation improvements. People need to store videos, and additionally they need video files that are actually desirable to watch. Long tedious videos punctuated by moments of excitement are not likely to retain a consumer's interest.

Automated digital file curation has been seen as a way out of this data overload problem. Videos that have identical file signatures can be correctly identified as the same video, a redundant copy can be deleted, and space can be saved. However, using this signature metadata is blunt. The process only works when two files are almost completely identical. Other metadata is sometimes collected during recording, such as GPS data, but software to determine whether two digital files are substantially similar based on real-world metadata are in their infancy. Furthermore, software to determine if a video, or part of a video, is entertaining or even worth watching based on real-world metadata, is virtually nonexistent.

SUMMARY OF INVENTION

Hence, there is still a need for further improvement in technologies for video curation. Particularly, people who make videos of driving their vehicle tend to produce long videos, punctuated by moments of excitement. These exciting moments interestingly enough tend to correlate with something the vehicle itself is doing. An exciting pass can be linked to quick acceleration, a near-miss collision could associate with quick deceleration, and a well-cornered turn could be associated with both. Therefore, a system that utilizes the acceleration data of an automobile, collected simultaneously with a video of that automobile driving, could pick out exciting individual moments or scenes from within a longer video, based solely on that acceleration metadata. The system could then combine these smaller clips into a curated video, one that saves space, saves time, and improves on a viewer's enjoyment as compared to the uncurated video.

As a first example, a method includes capturing video data from a camera over a first period of time; capturing motion data over that first period of time; more functions to select a first subset of the video data captured during the first period of time, spanning a second period of time, based on a corresponding first subset of the motion data captured during the first period of time and spanning the second period of time; and additionally functions to store the first subset of the video data.

A second example is a video curation system that includes a motion detector. This motion detector is configured to capture motion data for a vehicle. The video curation system further includes a camera, which is configured to capture video data for the vehicle. A processor is included in the video curation system, one that is coupled to the motion detector and also coupled to the camera. A memory is also coupled to the processor. There is programming in the memory, which when executed by the processor configures the video curation system to implement functions, including functions to capture video data from the camera over a first period of time; functions to capture motion data from the motion detector over that first period of time; more functions to select a first subset of the video data captured during the first period of time, spanning a second period of time, based on a corresponding first subset of the motion data captured during the first period of time spanning the second period of time; and additionally functions to store the first subset of the video data in the memory.

Additional advantages and novel features of the examples will be set forth in part in the description which follows, and in part will become apparent to those skilled in the art upon examination of the following and the accompanying drawings or may be learned by production or operation of the examples. The objects and advantages of the present subject matter may be realized and attained by means of the methodologies, instrumentalities and combinations particularly pointed out in the appended claims.

BRIEF DESCRIPTION OF THE DRAWINGS

The drawing figures depict one or more implementations, by way of example only, not by way of limitations. In the figures, like reference numerals refer to the same or similar elements.

FIGS. 1A and 1B depict a vehicle with an embedded accelerometer and a mobile device above the vehicle's dashboard with an additional embedded accelerometer.

FIG. 2A is drawing of a vehicle moving along a road and collecting video and other information. It identifies the locations at which the curation software ultimately selects footage surrounding, and shows illustrative vignettes of the footage captured as the vehicle proceeds down the road.

FIG. 2B depicts a three line (or curve) graph illustrating the longitudinal acceleration forces experienced by the vehicle, lateral acceleration forces experienced by the vehicle, and the steering wheel rotational position over time as the vehicle proceeds down the road in FIG. 2A.

FIG. 2C depicts two selections of footage from the drive depicted in FIG. 2A that ultimately have duplicated segments. The figure also contains a single unified selection that removes the duplicate copy of the footage to create a continuous selection.

FIG. 3 is a functional block diagram of the video curation system. It shows a vehicle with multiple electronic control units (ECUs) that send measurements via a Wi-Fi radio to a mobile device to aid in video curation.

FIGS. 4A-4C depict flowcharts of the tagging portion of the video curation process, as performed using the vehicle sensors. FIG. 4A focuses on tagging based on vehicle acceleration, FIG. 4B focuses on determining and counting hard turns, and FIG. 4C focuses on ancillary information uploaded from the vehicle.

FIG. 5 is a flowchart of the post-processing portion of the video curation process, as performed using the vehicle sensor tags.

FIG. 6 is a flowchart of the tagging portion of the video curation process, as performed using the mobile device sensors.

FIG. 7 is a flowchart of the post-processing portion of the video curation process, as performed using the mobile device tags.

DETAILED DESCRIPTION

In the following detailed description, numerous specific details are set forth by way of examples in order to provide a thorough understanding of the relevant teachings. However, it should be apparent to those skilled in the art that the present teachings may be practiced without such details. In other instances, well known methods, procedures, components, and/or circuitry have been described at a relatively high-level, without detail, in order to avoid unnecessarily obscuring aspects of the present teachings.

The term “coupled” as used herein refers to any logical, optical, physical or electrical connection, link or the like by which signals or light produced or supplied by one system element are imparted to another coupled element. Unless described otherwise, coupled elements or devices are not necessarily directly connected to one another and may be separated by intermediate components, elements or communication media that may modify, manipulate or carry signals.

Reference now is made in detail to the examples illustrated in the accompanying drawings and discussed below.

FIGS. 1A and 1B depict an electronic mobile device 300 (otherwise referred to herein as a smartphone) mounted to the windshield or dash board of a vehicle 201. Data from the mobile device 300 and the vehicle 201 is used to create (i.e., curate) a video comprising video data (e.g., the road and surroundings either before, behind or beside the vehicle 201), motion data (e.g., speed, acceleration), and/or ancillary data (e.g., vehicle torque, vehicle power, drive gear selection, songs playing on vehicle radio). The video data, motion data and ancillary data may be generated from the mobile device 300 and/or the vehicle 201. With regard to the motion data, for example, both the mobile device 300 or the vehicle 201 include motion detectors or sensors (e.g., accelerometer and GPS chip) that can determine the location, speed and/or acceleration of the vehicle 201 as will be explained hereinafter.

There are at least three different ways to curate a video using the video data and motor data. In a first example, video information produced by camera in the mobile device 300 is used in concert with motion information from sensors in the vehicle 201 to curate a video. The flowcharts of FIGS. 4A, 4B, 4C, and 5 relate to the first example. In a second example, video and motion information produced by the mobile device 300 (only) are used to curate a video. The flowcharts of FIGS. 6 and 7 relate to the second example. In a third example, where a vehicle has a camera, video and motion information produced by the vehicle 201 (only) are used to curate a video.

In the first example, communications between the mobile device 300 and vehicle 201 can be achieved by connecting the vehicle's Controller Area Network (CAN) bus to a wireless radio, such as a Wi-Fi radio, or a Bluetooth radio. The vehicle's wireless radio would then connect to the mobile device's radio, and send accelerometer data, either in bulk or in portions, to the mobile device 300 to aid in video curation. Therefore, the vehicle 201 only need a means to transfer data from itself to mobile device 300 in order to use the mobile device 300 to aid in curation of the video. Mobile device 300 could perform the video curation. Alternatively, the vehicle's processors could perform the video curation, having received the uncurated raw video data from the mobile device 300. This may improve processing, or reduce ease of unauthorized copying of the curation software. The curated video could then be sent back to the mobile device 300, or it could be sent directly to another server via Wi-Fi or 4G/LTE radios built into the vehicle 201.

In the second example, where the accelerometer or other sensors of the mobile device 300 is used, the vehicle 201 could potentially have no connection to the mobile device 300 at all. In this example, the vehicle 201 may be any sort of moving apparatus with variable accelerations, such as a motorcycle, bicycle, jet-ski, snow mobile, hang-glider, speed boat, truck, helicopter, or a carnival ride all could be moving apparatuses that might benefit from having mobile device 300 attached to it, which curates video based on the acceleration of that moving apparatus.

In the third example, where the vehicle 201 has a built-in camera, the vehicle 201 is capable of performing the video curation by itself, by combining the vehicle motion data with the video captured by the camera of the vehicle 201. The vehicle would only likely use a wireless radio to transfer the curated video to another device, but conceivably could play the curated video on the vehicle's display or digital interface.

Turning now to FIG. 2A, the vehicle 201 is shown driving along the road starting from position 250, turning left, right, then left again, before coming to rest at its final position 290. During this time, a camera on either vehicle 201 or the mobile device 300 records raw footage of the view from the front dashboard of the vehicle 201. The curation software in vehicle 201 or the mobile device 300 is configured to check for two conditions as the vehicle travels along the road. First, the software checks whether the acceleration of the vehicle (either positive or negative acceleration) is greater than a first absolute acceleration threshold. Second, the software checks whether the average acceleration of the vehicle is greater than a second absolute acceleration threshold (which is lower than the first threshold), while the steering wheel of the vehicle 201 has been turned at least one-half rotation (for example) in either direction.

The vehicle 201 accelerates, turns, decelerates, etc. along the course shown in FIG. 2A. FIG. 2B depicts the acceleration forces and the steering wheel rotation of the vehicle 201 during the drive from point 250 to point 290 shown in FIG. 2A. Plot 202 charts the forward and backward acceleration forces: positive values are forward acceleration, negative values are reverse acceleration. Plot 203 charts the left and right acceleration forces: positive values are left acceleration, negative values are right acceleration. Plot 204 charts the amount or degree the steering wheel is turned: positive values are left-turning distance from the center position, and negative values are right-turning distance from the center position.

The vehicle 201 experiences at least two exciting “moments” as it moves over the course of FIG. 2A between points 1A and 1B, as adjudged by processor(s) operating according to the block diagrams depicted in FIGS. 4A-4C and 6, which figures will be described later. In particular, the moments occur at locations 260 and 270 along the course. For each moment at locations 260 and 270, the processor is configured to capture video and motion information before, during and after the moment. The periods before and after may be referred to as buffer periods. For example, for the moment at location 260, the processor capture video and motion information corresponding to clips or illustrations 1-4 in FIG. 2A. And, for the moment at location 270, the processor captures video and motion information corresponding to clips or illustrations 4-7 in FIG. 2A.

In the exemplary course shown in FIG. 2A, the vehicle only very temporarily satisfies the moment tagging criteria. In practice, the moment tagging could occur for an extended period of time. For example, if a driver tightly turned the vehicle in a “doughnut” shape while maintaining speed, the acceleration forces threshold and steering wheel rotation threshold could be satisfied indefinitely. Therefore, if a driver drove in a “doughnut” for ten full second, the moments selected might be the two moments before the “doughnut” turn started, the entire “doughnut” turn, and then the two moments after exiting the “doughnut” turn.

Once the drive is completed, the driver directs the software to perform post-processing, which is depicted at a high-level in FIG. 2C.

FIG. 2C is a depiction of the post-processing software at work. In FIG. 2A, moments were tagged at locations 260 and 270, as described above. In FIG. 2C, clips 1-4 are depicted in the first film strip 11 corresponding to the moment at location 260, whereas clips 4-7 are depicted in the second film strip 21 corresponding to the moment at location 270. Normally, these two strips would just be connected so that the last moment of the first strip 11 immediately leads into the first moment of the second strip 21. However, here both strips 11 and 21 include clip 4. Without proper curation, a curated video would contain clip 1, clip 2, clip 3, clip 4 twice, then clip 5, clip 6, and then clip 7. This however does not accurately represent the drive, as the vehicle 201 did not experience clip 4 twice. Therefore, the software edits one or both strips 11 and 12, removing one copy of the duplicate clip 4. Then, the software splices the strips 11 and 12 together, resulting in a continuous, brief, and exciting curated clip 31 of driving moments from a longer drive. Further details in connection with post processing will be described with reference to FIGS. 5 and 7.

FIG. 3 is a functional block diagram of the video curation system. Generally, it depicts a mobile device 300 communicating with a vehicle 201 over radio communications, however, as noted above, the video curation system may include only the mobile device 300 or only the vehicle 201.

The mobile device 300 includes a central processing unit (CPU) 303 formed of one or more processors and a main memory 306. The circuitry forming the CPU 303 may contain a single microprocessor. The circuitry forming the CPU 303 may contain a number of microprocessors for configuring the mobile device 300 as a multi-processor system, or the circuitry forming the CPU 303 may use a higher speed processing architecture. The main memory 306 in the example includes ROM, RAM and cache memory; although other memory devices may be added or substituted.

In operation, the main memory 306 stores at least portions of instructions and data for execution by the CPU 303. These instructions may include the video curation programming 307 which perform the video collection and curation. This programming can also be located in the vehicle memory 359, or possibly an off-site post-processing server, in alternative embodiments. The main memory 306 also stores the raw video data 308, captured during drives, as well as the curated video data 310 that is created after the post-processing. The CPU 303 and memory 306 may handle programs and files in a similar fashion for other functions of the mobile device 300.

The mobile device 300 also includes one or more input/output interfaces for communications, shown by way of example as a wireless radio 330. Although other wireless radio arrangements may be used, the example mobile device utilizes a wireless connection, such as a Wi-Fi type compatible with the particular iteration of Wi-Fi protocol utilized in communicating with the vehicle 201. The wireless connection may be a Bluetooth connection or a wired connection, for example.

The wireless radio 330 may be a high-speed modem, a Bluetooth transceiver, an Ethernet (optical, cable or wireless) card or any other appropriate data communications device. The physical communication link(s) from the mobile device 300 to the vehicle 201 may be optical, wired, or wireless (e.g., via satellite, cellular network, or Wi-Fi).

The mobile device 300 further includes an appropriate display screen 309 or the like, serving as a local user interface for configuration, programming or trouble-shooting purposes. The display screen 309 can be used to view the raw video data 308, as well as the curated video data 310.

The accelerometer 318 is an electronic device, such as an inertial measurement unit (IMU) that measures and reports, for example, the specific force on the mobile device 300. The accelerometer 318 measurements can be processed on the mobile device 300. The accelerometer 318 detects acceleration along the horizontal (X), vertical (Y), and depth or distance (Z) axes, which can be defined relative to the ground, the mobile device 300, or the vehicle 201.

The gyroscope 321 detects the rate of rotation around 3 axes (X, Y, and Z). This can therefore detect rotational rate through the horizontal (X), vertical (Y), and depth or distance (Z) axes, which can also be defined relative to the ground, the mobile device 300, or the vehicle 201.

The GPS chip 324 is a chip that uses the Global Positioning System (GPS) to track the mobile device 300 and determine its location. This data can be stored in the mobile device 300 memory 306 and potentially be used by the video curation programming 307.

The mobile device 300 also has a front camera 315 and rear camera 312. This example embodiment has two cameras, but only one camera is needed to capture footage. The second camera can either serve as a backup, or capture different footage for the curation programming 307.

Turning now to the components of the vehicle 201, the vehicle 201 includes a central processing unit (CPU) 362 formed of one or more processors and a main memory 359. The circuitry forming the CPU 362 may contain a single microprocessor, or the circuitry forming the CPU 362 may contain a number of microprocessors for configuring the vehicle 201 as a multi-processor system. The main memory 359 in the example includes ROM, RAM and cache memory; although other memory devices may be added or substituted.

In operation, the main memory 359 stores at least portions of instructions and data for execution by the CPU 362. In this embodiment, these instructions do not include the video curation programming 307 which perform the video collection and curation, but this programming could be located in the vehicle memory 359 in alternative embodiments. The main memory 359 could also store the raw video data 308, captured during drives, as well as the curated video data 310 that is created after the post-processing, depending on the embodiment. The CPU 362 and memory 359 may handle programs and files in a similar fashion for other functions of the vehicle 201.

The vehicle 201 also includes one or more input/output interfaces for communications, shown by way of example as a wireless radio 356. Although other wireless radio arrangements may be used, the vehicle 201 utilizes a Wi-Fi type compatible with the particular iteration of Wi-Fi protocol utilized in communicating with the mobile device 300. The wireless radio 356 may be a high-speed modem, a Bluetooth transceiver, an Ethernet (optical, cable or wireless) card or any other appropriate data communications device. The physical communication link(s) from the vehicle 201 to the mobile device 300 may be optical, wired, or wireless (e.g., via satellite, cellular network, or Wi-Fi).

The vehicle 201 further includes an appropriate display interface 380 or the like, serving as a local user interface for configuration, programming or trouble-shooting purposes. The display interface 380 can be used to view the raw video data 308, as well as the curated video data 310, in embodiments where the display interface 380 is a screen.

The Controller Area Network (CAN) bus 353 operates by allowing systems connected to the bus, such as the electronic control units (ECUs), to send messages through the bus to other ECUs. Alternatively, an ECU can broadcast data over the bus 353. ECUs might include the vehicle's CPU 362, the engine torque sensor 374, and the accelerometer 371.

The vehicle accelerometer 371 is an electronic device, such as an inertial measurement unit (IMU) that measures and reports, for example, the vehicle's specific acceleration force. The accelerometer 371 measurements can be processed on the vehicle's CPU 362. The accelerometer 371 detects acceleration along the X, Y and/or Z axes, which can be defined relative to the ground or the vehicle 201.

The engine torque sensor 374 measures and records the torque of the engine. The engine torque sensor 374 can then send its readings to the vehicle CPU 362, or to the mobile device 300 via the wireless radio 356. The engine horsepower sensor 383 may additionally capture the revolutions per minute (RPM) of the engine's drive shaft.

The drive gear sensor 377 tracks the vehicle's current gear. The drive gear sensor 377 can then send its readings to the vehicle CPU 362, or to the mobile device 300 via the wireless radio 356.

The GPS chip 368 is a chip that uses the Global Positioning System (GPS) to track the vehicle 201 and determine its location. This data can be stored in the vehicle memory 359 or the mobile device memory 306 and potentially be used by the video curation programming 307.

The media player 365 is integrated with the interface 380 in this embodiment, and reports via the CAN bus 353 the current music track played by the driver. This information can be saved in either memory 306 or 359 and used by the video curation programming 307.

The steering wheel angle sensor 386 measures the amount or degree of rotation of the steering wheel. The sensor 386 can measure direction and magnitude of the turning, or just the magnitude. In this embodiment the sensor 386 measures both. This information can be reported via the CAN bus 353 to the vehicle CPU 362 and memory 359, or to the mobile device 300 via the wireless radio 356.

FIGS. 4A-4C are flowcharts depicting how, in an embodiment where the vehicle's sensors are utilized, specific moments in a video are tagged to be later used in curation and post-processing. FIG. 4A depicts the process for tagging moments based entirely on acceleration measurements. The inputs for this process are the acceleration forces sensed through the X axis 402, and the acceleration forces sensed through the Y axis 404. These forces are sensed by the vehicle's accelerometer 371, as noted above. These forces are sensed in operation 406 periodically, such as every 100 milliseconds. Operation 408 sets these sensed values into two stored variables: vehicle acceleration X for X-axis acceleration forces, and vehicle acceleration Y for Y-axis acceleration forces. Operation 410 applies the Pythagorean theorem to these two vectors to create a resultant vector. The absolute value of the resultant vector is then taken in operation 412, so that the resultant vector representing the vehicle's acceleration is always positive.

Operation 414 is an exclusionary operation, designed to eliminate noisy data. Here, the positive acceleration vector (car_accel_normalized) has the previous positive acceleration vector (acceleration_list.length( )-1) value subtracted from it, and the result is normalized. This captures the change in acceleration, and expresses it as a positive value. This change in acceleration value is then compared to an “excitement threshold” value, multiplied by 1.5. The excitement threshold is a value set by the user, and has no units. This “excitement threshold” value multiplied by 1.5 could be called an acceleration excitement threshold value

If, in operation 414, the change in acceleration exceeded the acceleration excitement threshold value, then that change in acceleration is compared to the quantity 0.2 in operation 416. This is to confirm that the acceleration is material, even if the change in acceleration is material. If the acceleration is not material, operation 418 occurs. During operation 418, the list of acceleration points is wiped out, and the process returns to operation 406. If the acceleration is material, then the acceleration vector is added to the list of acceleration vectors, and the acceleration vector becomes the previous acceleration vector used in operation 414. After this, the process stops, and returns to operation 406.

If, in operation 414, the change in acceleration did not exceed the acceleration excitement threshold value, then the acceleration vector is added to the list of acceleration vectors in operation 424. This indicates that the acceleration cycle has completed, and in a typical scenario the vehicle is near or at cruising speed. Therefore, since the vehicle acceleration has completed, the flowchart then determines whether the acceleration was overall worthy of curation. In operation 426, the first acceleration vector is subtracted from the last acceleration vector, and then the absolute value of that difference is taken. If this absolute difference in acceleration vectors exceeds the excitement threshold divided by four, this indicates that the difference in acceleration was material, and could be included. If the absolute difference in acceleration vectors does not exceed the excitement threshold divided by four, this indicates that the overall acceleration event did not produce a major change in acceleration, and so in operation 428 the list of acceleration points is wiped out, and the process returns to operation 406.

If the result of operation 426 is that the absolute difference in acceleration vectors exceeds the excitement threshold divided by four, then the moving average is calculated in operation 430. This moving average is the sum of all acceleration vectors captured, divided by the number of acceleration vectors. This moving average is then compared to the excitement threshold in operation 432. If the moving average of acceleration vectors is less than the excitement threshold, then the average acceleration was not exciting enough, and operation 434 has the list of acceleration points wiped out, returning the process to operation 406.

If this moving average does exceed the excitement threshold, then the series of acceleration vectors has been deemed “exciting” enough. Operation 436 then determines whether a tagged moment has occurred too recently. This operation utilizes a debounce function. Debounce functions limit the rate at which another operation can occur within a debounce time. If the difference in the current time and the time an exciting moment last occurred does not exceed the debounce time, then the moment is too close, and for now is not added. Operation 438 does not wipe out the list of acceleration points, and merely returns the process to operation 406. If the difference in the current time and the time an exciting moment last occurred does exceed the debounce time, then the moment is sufficiently far from the last tagged moment, and the process proceeds to saving the tagged moment.

Operation 440 involves calculating how much the excitement threshold was exceeded by, which is simply subtracting the excitement threshold from the moving average.

With the various values calculated, and a determination made, the values are ready for storing in the memory. Operation 442 stores a tag point, which includes the moving average, the excitement threshold, how much the excitement threshold was exceeded by the moving average, a timestamp indicated when the tag point occurred, and the latitude and longitude of the vehicle when the tag point was generated in a database. This tag point database is used by the post-processing algorithm 444. Next, operation 443 sets the time an exciting moment last occurred to the current time. At this point, operation 445 returns the process to operation 406, unless the drive has been completed. In that case, the process proceeds to post-processing, described in FIG. 5.

FIG. 4B depicts the process for collecting hard turn counts based on steering wheel angle. This process also makes use of the positive acceleration vector created every 100 ms in operation 412 of FIG. 4A. The input for this process beyond the positive acceleration vector from operation 412 is the angle of the steering wheel 446. This angle is sensed by the vehicle's built-in steering wheel angle sensor 386. This angle is sensed in operation 448 periodically, such as every 100 milliseconds. Operation 450 is an exclusionary operation, designed to eliminate noisy data. Here, the following questions are evaluated: Is the steering wheel's absolute angle beyond 180 degrees? Is the positive acceleration vector from operation 412 greater than half of the excitement threshold value? Is the vehicle not currently considered to be engaging in a “hard turn”? If all three of those statements are true, then the process moves to operation 452. In this operation, the vehicle is set to be considered to be engaging in a “hard turn”, and the number of hard turns is incremented, and that information is passed to the post-processing algorithm in operation 460.

If one of the statements from operation 450 is not true (i.e., false), then the vehicle is either not performing a hard turn, or was performing a hard turn 100 milliseconds ago. To check, operation 454 determines whether the steering wheel's absolute angle is less than or equal to 10 degrees. If it is not, then the vehicle is still turning hard, and the process exits in operation 456 and returns to operation 448. If the steering wheel's absolute angle is less than or equal to 10 degrees, then the vehicle is not considered to be engaging in a “hard turn” in operation 458. This information is passed to the post-processing algorithm 444. The process then moves back to operation 448, ready to check for and count the next “hard turn” the driver might make.

FIG. 4C depicts ancillary information that is inputted into post-processing algorithm 444. More particularly, the current drive gear 462 from the drive gear sensor 377 is put into an aggregation in operation 464, so that the post-processing algorithm 444 can have a count of the total time each drive gear was used. Additionally, the current music track 468 from the media player 365 is put into a list in operation 470, so that the post-processing algorithm 444 can have a list of each music track played. Further, the current output power 474 from the engine horsepower sensor 383 has the maximum recorded value selected in operation 476, so that the post-processing algorithm 444 can have the maximum experienced output power. Finally, the current output torque 480 from the engine torque sensor 374 has the maximum recorded value selected in operation 482, so that the post-processing algorithm 444 can have the maximum experienced output torque.

FIG. 5 is a flowchart depicting how, in an embodiment where the vehicle's sensors were used, specific moments from a video that were tagged to be used in curation are post-processed. Operation 502 reads the data from the database of tag points, which is populated in operation 442 of FIG. 4A. This operation also reads in the entire raw video file, to be curated using the tag points from operation 442 of FIG. 4A. First, in operation 504, the timestamp of a tag point is taken. This timestamp has a start and finish timestamp calculated based on the timestamp. The start timestamp is a buffer period of time (in this embodiment 2500 milliseconds) multiplied by how much the excitement threshold was exceeded by the moving average, earlier than the tag point time stamp. So, if the amount the excitement threshold was exceeded by the moving average is two, then the start timestamp is 5000 milliseconds before the tag point time stamp (2.0×2500 milliseconds). Equivalently, the end timestamp is the buffer period of time multiplied by how much the excitement threshold was exceeded by the moving average, later than the tag point time stamp. If the amount the excitement threshold was exceeded by the moving average is two, then the final span of time is 10000 milliseconds: 5000 milliseconds before the tag point time stamp, and 5000 milliseconds after the tag point time stamp. This range is then pushed into a list in operation 508. Operations 504 and 508 are repeated for every tag point. The time periods and values provided herein are provided for purposes of example, and should not be construed as limiting.

In operation 510, each time range is compared to the other time ranges. If a time range's end is after the next time range's beginning, the time range's end is set to be equal to the next time ranges beginning in operation 512. This de-collides the ranges of time, and removes overlaps. Operations 510 and 512 generally depict de-collision of timespans. While edge cases exist (e.g. three timespans, each three seconds long, each starting one second after the other) that are not fully covered by these brief explanations of de-collision, conventional algorithms and methods may be used by a person of ordinary skill in the art to sufficiently detect overlapping spans, remove the overlaps, and create a smooth continuum of spans with no collisions. The intervals are then used to select corresponding segments of footage from the raw video file, and these segments are used in operation 528.

In operation 514, video intro footage is rendered. This footage is to be placed ahead of the footage from operation 512 by operation 528. The intro footage contains metadata about the drive such as location, time, the total number of tag points, and possibly branding and copyright information.

Operation 506 descends from operation 502. Here, the tag points are used, as well as the media list passed in operation 470. The media list timespans are checked against the tag points, and if a media track is playing during the largest cluster of tag points, that media track is stored in operation 516.

Operation 526 renders video outro footage. This footage is to be placed behind the footage from operation 512 by operation 528. The outro footage uses the media track from operation 516 as its sound track. The outro footage also uses the most used gear drive 518, passed from operation 466 to display in the outro. The outro footage additionally uses the maximum engine power 520, passed from operation 476 to display in the outro. Further, the outro footage uses the maximum engine torque, passed from operation 482 to display in the outro. Finally, the outro footage uses the hard turn count, passed from operation 452 or 458 to display in the outro. The outro might contain branding and copyright information.

Operation 528 is the final operation, which takes the intro footage from operation 514, appends the drive footage from operation 512 sequentially, and then appends the outro footage from operation 526. This operation creates a final contiguous video file, which is then stored in a database, and optionally displayed on a video display.

FIG. 6 is a flowchart depicting how, in an embodiment where the sensors of the mobile device 300 are used, specific moments in a video are tagged to be later used in curation and post-processing. The inputs for this process are the acceleration forces sensed through the X axis 602, the acceleration forces sensed through the Y axis 604, and the acceleration forces sensed through the Z axis 606. These forces are sensed by the mobile device's built-in 3D accelerometer 318. These forces are sensed in operation 608 periodically, such as every 100 milliseconds. Operation 610 assesses the orientation of the mobile device. If the mobile device 300 appears to be in a vertical, or “portrait” orientation, then operation 612 is selected, which sets these sensed values into two stored variables: mobile device acceleration X for X-axis acceleration forces, and mobile device acceleration Z for Y-axis acceleration forces. Alternatively, if the mobile device appears to be in a horizontal, or “landscape” orientation, the operation 614 is selected, which sets these sensed values into two stored variables: mobile device acceleration Y for X-axis acceleration forces, and mobile device acceleration Z for Y-axis acceleration forces.

Operation 616 applies the Pythagorean theorem to these two vectors to create a resultant vector. The absolute value of the resultant vector is then taken in operation 618, so that the resultant vector representing the mobile device's acceleration is always positive.

Operation 620 is an exclusionary operation, designed to eliminate noisy data. Here, the positive acceleration vector (car_accel_normalized) has the previous positive acceleration vector (acceleration_list.length( )-1) value subtracted from it, and the result is normalized. This captures the change in acceleration, and expresses it as a positive value. This change in acceleration value is then compared to an “excitement threshold” value, multiplied by 1.5. The excitement threshold is a value set by the user, and has no units. This “excitement threshold” value multiplied by 1.5 could be called an acceleration excitement threshold value

If, in operation 620, the change in acceleration exceeded the acceleration excitement threshold value, then that change in acceleration is compared to 0.2 in operation 622. This is to confirm that the acceleration is material, even if the change in acceleration is material. If the acceleration is not material, operation 624 occurs. In operation 624, the list of acceleration points is wiped out, and the process returns to operation 608. If the acceleration is material, then the acceleration vector is added to the list of acceleration vectors, and the acceleration vector becomes the previous acceleration vector used in operation 620. After this, the process stops, and returns to operation 608.

If, in operation 620, the change in acceleration did not exceed the acceleration excitement threshold value, then the acceleration vector is added to the list of acceleration vectors in operation 630. This indicates that the acceleration cycle has completed, and in a typical scenario the vehicle the mobile device is within is near or at cruising speed. Therefore, since the vehicle acceleration has completed, the flowchart then determines whether the acceleration was overall worthy of curation. In operation 632, the first acceleration vector is subtracted from the last acceleration vector, and then the absolute value of that difference is taken. If this absolute difference in acceleration vectors exceeds the excitement threshold divided by four, this indicates that the difference in acceleration was material, and could be included. If the absolute difference in acceleration vectors does not exceed the excitement threshold divided by four, this indicates that the overall acceleration event did not produce a major change in acceleration, and so in operation 634 the list of acceleration points is wiped out, and the process returns to operation 608.

If the result of operation 632 is that the absolute difference in acceleration vectors exceeds the excitement threshold divided by four, then in the moving average is calculated in operation 636. This moving average is the sum of all acceleration vectors captured, divided by the number of acceleration vectors. This moving average is then compared to the excitement threshold in operation 638. If the moving average of acceleration vectors is less than the excitement threshold, then the average acceleration was not exciting enough, and operation 640 has the list of acceleration points wiped out, returning the process to operation 608.

If this moving average does exceed the excitement threshold, then the series of acceleration vectors has been deemed “exciting” enough. Operation 642 then determines whether a tagged moment has occurred too recently. This operation utilizes a debounce function. If the difference in the current time and the time an exciting moment last occurred does not exceed the debounce time, then the moment is too close, and for now is not added. Operation 644 does not wipe out the list of acceleration points, and merely returns the process to operation 608. If the difference in the current time and the time an exciting moment last occurred does exceed the debounce time, then the moment sufficiently far from the last tagged moment, and the process proceeds to saving the tagged moment.

Operation 646 involves calculating how much the excitement threshold was exceeded by, which is simply subtracting the excitement threshold from the moving average.

With the various values calculated, and a determination made, the values are ready for storing in in the memory. Operation 648 stores a tag point, which includes the moving average, the excitement threshold, how much the excitement threshold was exceeded by the moving average, a timestamp indicated when the tag point occurred, and the latitude and longitude of the vehicle when the tag point was generated in a database. This tag point database is used by the post-processing algorithm 650. Next, operation 652 sets the time an exciting moment last occurred to the current time. At this point, operation 654 returns the process to operation 608, unless the drive has been completed. In that case, the process proceeds to post-processing, described in FIG. 7.

FIG. 7 is a flowchart depicting how, in an embodiment where the sensors of the mobile device 300 were used, specific moments from a video that were tagged to be used in curation are post-processed. Operation 702 reads the data from the database of tag points, which is populated in operation 648 of FIG. 6. This operation also reads in the entire raw video file, to be curated using the tag points from operation 648 of FIG. 6. First, in operation 704, the timestamp of a tag point is taken. This timestamp has a start and finish timestamp calculated based on the timestamp: the start timestamp is a buffer period of time (in this embodiment 2500 milliseconds) multiplied by how much the excitement threshold was exceeded by the moving average, earlier than the tag point time stamp. So, if the amount the excitement threshold was exceeded by the moving average is two, then the start timestamp is 5000 milliseconds before the tag point time stamp (2.0×2500 milliseconds). Equivalently, the end timestamp is the buffer period of time multiplied by how much the excitement threshold was exceeded by the moving average, later than the tag point time stamp. If the amount the excitement threshold was exceeded by the moving average is two, then the final span of time is 10000 milliseconds: 5000 milliseconds before the tag point time stamp, and 5000 milliseconds after the tag point time stamp. This range is then pushed into a list in operation 708. Operations 704 and 708 are repeated for every tag point.

In operation 712, each time range is compared to the other time ranges. If a time range's end is after the next time range's beginning, then the time range's end is set to be equal to the next time ranges beginning in operation 714. This de-collides the ranges of time, and removes overlaps. Operations 712 and 714 generally depict de-collision of timespans. While edge cases exist (e.g. three timespans, each three seconds long, each starting one second after the other) that are not fully covered by these brief explanations of de-collision, conventional algorithms and methods may be used by a person of ordinary skill in the art to sufficiently detect overlapping spans, remove the overlaps, and create a smooth continuum of spans with no collisions. The intervals are then used to select corresponding segments of footage from the raw video file, and these segments are used in operation 718.

In operation 716, video intro footage is rendered. This footage is to be placed ahead of the footage from operation 714 by operation 718. The intro footage contains metadata about the drive such as location, time, the total number of tag points, and possibly branding and copyright information.

Operation 706 descends from operation 702. Here, the tag points are counted, to be used in the outro footage.

Operation 710 renders video outro footage. This footage is to be placed behind the footage from operation 714 by operation 718. The outro footage has the tag point count from operation 706 visually rendered into the video outro footage. The outro might contain branding and copyright information.

Operation 718 is the final operation, which takes the intro footage from operation 716, appends the drive footage from operation 714 sequentially, and then appends the outro footage from operation 710. This operation creates a final contiguous video file, which is then stored in a database, and optionally displayed on a video display.

It will be understood that the terms and expressions used herein have the ordinary meaning as is accorded to such terms and expressions with respect to their corresponding respective areas of inquiry and study except where specific meanings have otherwise been set forth herein. Relational terms such as first and second and the like may be used solely to distinguish one entity or action from another without necessarily requiring or implying any actual such relationship or order between such entities or actions. The terms “comprises,” “comprising,” “includes,” “including,” or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that has, comprises or includes a list of elements or steps does not include only those elements or steps but may include other elements or steps not expressly listed or inherent to such process, method, article, or apparatus. An element preceded by “a” or “an” does not, without further constraints, preclude the existence of additional identical elements in the process, method, article, or apparatus that comprises the element.

Unless otherwise stated, any and all measurements, values, ratings, positions, magnitudes, sizes, and other specifications that are set forth in this specification, including in the claims that follow, are approximate, not exact. Such amounts are intended to have a reasonable range that is consistent with the functions to which they relate and with what is customary in the art to which they pertain. For example, unless expressly stated otherwise, a parameter value or the like, whether or not qualified by a term of degree (e.g. approximate, substantially or about), may vary by as much as ±10% from the recited amount.

While the foregoing has described what are considered to be the best mode and/or other examples, it is understood that various modifications may be made therein and that the subject matter disclosed herein may be implemented in various forms and examples, and that they may be applied in numerous applications, only some of which have been described herein. It is intended by the following claims to claim any and all modifications and variations that fall within the true scope of the present concepts. 

What is claimed is:
 1. A method for curating a video of a vehicle drive, the method comprising: capturing video data of the vehicle drive over a first period of time; capturing motion data for the vehicle over the first period of time; selecting a first subset of the video data captured during the first period of time, based on a corresponding first subset of the motion data captured during the first period of time, the first subsets each spanning a second period of time, wherein the first subset of the video data is selected when a moving average of a quantity, which is calculated as a function of both a longitudinal acceleration and a lateral acceleration of the vehicle occurring during the second period of time, exceeds a threshold value, and wherein the first subset of the video data is also selected when both (i) the quantity that is a function of both the longitudinal acceleration and the lateral acceleration of the vehicle occurring during the second period of time, exceeds a second threshold value that is lower than said threshold value, and (ii) the steering angle during the second period of time exceeds a steering angle threshold value; storing the first subset of the video data; selecting a second subset of the video data captured during the first period of time based on a corresponding second subset of the motion data captured during the first period of time, the second subset spanning a third period of time, wherein the second subset of the video data is selected when a moving average of a quantity, which is calculated as a function of both the longitudinal acceleration and the lateral acceleration of the vehicle occurring during the third period of time, exceeds the threshold value; storing the second subset of the video data in the memory; and combining the first subset of the video data and the second subset of the video data into a subset video composition.
 2. The method from claim 1, further wherein: the first subset of the video data captured during the first period of time is selected when the corresponding first subset of the motion data deviates from the motion data captured before or after the first subset of the motion data.
 3. The method from claim 1, further comprising: identifying a subset overlap where video data from a fourth period of time is present in the first subset of the video data and the second subset of the video data; and combining the first subset of the video data and the second subset of the video data into a subset composition which only includes one instance of the video data from the fourth period of time.
 4. The method from claim 1, further comprising: prepending an intro video to the first subset of the video data; and appending an outro video to the first subset of the video data.
 5. The method from claim 1, wherein: the first subset of the video data captured during the first period of time is prepended with a first buffer of video data captured during a third period of time immediately before the first subset of the video data, and is appended with a second buffer of video data captured during a fourth period of time immediately after the first subset of the video data.
 6. The method of claim 1, wherein the quantity is calculated using the Pythagorean equation using the longitudinal acceleration and the lateral acceleration of the vehicle as inputs to the equation.
 7. A video curation system for a vehicle, comprising: a motion detector that is configured to capture motion data of the vehicle during a vehicle drive; a camera that is configured to capture video data relating to the vehicle drive; a processor coupled to the motion detector and the camera; a memory coupled to the processor; and programming in the memory, wherein execution of the programming by the processor configures the video curation system to implement functions, including functions to: capture video data from the camera over a first period of time; capture motion data from the motion detector over the first period of time; select a first subset of the video data captured during the first period of time based on a corresponding first subset of the motion data captured during the first period of time, the first subset of the video spanning a second period of time, wherein the first subset of the video data is selected when a moving average of a quantity, which is calculated as a function of both a longitudinal acceleration and a lateral acceleration of the vehicle occurring during the second period of time, exceeds a threshold value and wherein the first subset of the video data is also selected when both (i) the quantity that is a function of both the longitudinal acceleration and the lateral acceleration of the vehicle occurring during the second period of time, exceeds a second threshold value that is lower than said threshold value, and (ii) the steering angle during the second period of time exceeds a steering angle threshold value; store the first subset of the video data in the memory; selecting a second subset of the video data captured during the first period of time based on a corresponding second subset of the motion data captured during the first period of time, the second subset spanning a third period of time, wherein the second subset of the video data is selected when a moving average of a quantity, which is calculated as a function of both the longitudinal acceleration and the lateral acceleration of the vehicle occurring during the third period of time, exceeds the threshold value; storing the second subset of the video data in the memory; and combining the first subset of the video data and the second subset of the video data into a subset video composition.
 8. The video curation device of claim 7, wherein: the motion detector is embedded in either the vehicle, or is embedded in a mobile device that is attached to the vehicle.
 9. The video curation device of claim 8, wherein: the motion detector includes an accelerometer.
 10. The video curation device from claim 7, further comprising: a steering sensor that is coupled to the processor and configured to determine the steering angle of the steering wheel of the vehicle; and programming in the memory, wherein execution of the programming by the processor further configures the video curation system to implement functions, including functions to: capture the steering angle of the steering wheel from the steering sensor over the first period of time.
 11. The video curation device from claim 7, wherein: the first subset of the video data captured during the first period of time is prepended with a first buffer of video data captured during a third period of time immediately before the first subset of the video data, and is appended with a second buffer of video data captured during a fourth period of time immediately after the first subset of the video data.
 12. The video curation device from claim 7, further comprising: programming in the memory, wherein execution of the programming by the processor further configures the video curation system to implement functions, including functions to: collect metadata regarding operation of the video curation device; and store the metadata in the memory.
 13. The video curation device of claim 7, further comprising: programming in the memory, wherein execution of the programming by the processor further configures the video curation system to implement functions, including functions to: identify a subset overlap where video data from a fourth period of time is present in the first subset of the video data and the second subset of the video data; and wherein the combining step comprises combining the first subset of the video data and the second subset of the video data into the subset composition which includes only one instance of the video data from the fourth period of time.
 14. The video curation device of claim 13, further comprising: programming in the memory, wherein execution of the programming by the processor further configures the video curation system to implement functions, including functions to: remove the subset overlap from one of the first subset of the video data and the second subset of the video data prior to the combining step.
 15. A video curation system for a vehicle, comprising: a motion detector that is configured to capture motion data of the vehicle during a vehicle drive; a camera that is configured to capture video data relating to the vehicle drive; a processor coupled to the motion detector and the camera; a memory coupled to the processor; and programming in the memory, wherein execution of the programming by the processor configures the video curation system to implement functions, including functions to: (i) capture video data from the camera over a first period of time; (ii) capture motion data from the motion detector over the first period of time; (iii) select a first subset of the video data captured during the first period of time based on a corresponding first subset of the motion data captured during the first period of time, the first subset of the video spanning a second period of time; (iv) store the first subset of the video data in the memory; (v) collect metadata regarding operation of the video curation device, wherein the metadata comprises the identity of music the video curation device played during the first period of time; and (vi) store the metadata in the memory. 